.custom-form-ui {
  .px-form-item__label {
    width: auto !important;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400 !important;
    color: #333;
    background: #f4f4f4;
    border-radius: 4px 0 0 4px;
  }

  .px-form-item {
    display: inline-flex;
    width: 256px;
    margin-right: 16px;
    margin-bottom: 16px;
    border: 1px solid #dfdfdf;
    border-radius: 4px;

    &.option-item {
      width: auto;
      border: none;
    }
  }

  .px-form-item__content {
    flex-grow: 1;
    width: auto;

    .px-button + .px-button:last-child {
      margin-left: 8px;
    }

    .px-input {
      width: auto;
    }

    .px-cascader {
      width: 100%;
    }
  }

  .px-input__wrapper {
    padding: 0 8px;
    border: none;
    border-radius: 0 4px 4px 0;
  }

  .px-select-v2__wrapper {
    border: none;
  }
}

.custom-form-ui-new {
  margin-bottom: 8px;

  .px-form-item__label {
    width: auto !important;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400 !important;
    color: #333;
    background: #f4f4f4;
    border-radius: 4px 0 0 4px;
  }

  .px-form-item:not(:last-child) {
    display: inline-flex;
    min-width: 200px;
    margin-right: 16px;
    margin-bottom: 16px;
    border: 1px solid #dfdfdf;
    border-radius: 4px;

    &.option-item {
      width: auto;
      border: none;
    }
  }

  .px-form-item__content {
    flex-grow: 1;
    width: auto;

    .px-button + .px-button:last-child {
      margin-left: 8px;
    }

    .px-input {
      width: auto;
    }

    .px-select,
    .px-select-v2 {
      width: 100%;
    }
  }

  .px-input__wrapper {
    padding: 0 8px;
    border: none;
    border-radius: 0 4px 4px 0;
  }

  .px-select-v2__wrapper {
    border: none;
  }
}

.flex-button-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: -8px 0 8px;

  button {
    margin-right: 8px;
  }

  .px-button + .px-button {
    margin-left: 0;
  }
}
